package com.ktgj.flight.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 航站楼对象 airport_terminal
 * 
 * @author ruoyi
 * @date 2021-08-30
 */
public class AirportTerminalApi extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long terminalId;

    /** 航司二字码 */
    @Excel(name = "航司二字码")
    private String airlinerId;

    /** 机场三字码 */
    @Excel(name = "机场三字码")
    private String airportId;

    /** 适用的开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "适用的开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 适用的结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "适用的结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 适用的航班号 开始值 0代表全部 */
    @Excel(name = "适用的航班号 开始值 0代表全部")
    private Long flightNoStart;

    /** 适用的航班号 结束值 999999代表全部 */
    @Excel(name = "适用的航班号 结束值 999999代表全部")
    private Long flightNoEnd;

    /** 适用的航班类型：0所有航班 1奇数航班 2偶数航班 */
    @Excel(name = "适用的航班类型：0所有航班 1奇数航班 2偶数航班")
    private String flightType;

    /** 适用的航班号最后追加字母值 如果存在值，则flight_type失效 */
    @Excel(name = "适用的航班号最后追加字母值 如果存在值，则flight_type失效")
    private String flightLetters;

    /** 出发航站楼 */
    @Excel(name = "出发航站楼")
    private String startTerminal;

    /** 抵达航站楼 */
    @Excel(name = "抵达航站楼")
    private String endTerminal;

    /** 航站楼国内外分别 0：不区分 1国内 2国外 */
    @Excel(name = "航站楼国内外分别 0：不区分 1国内 2国外")
    private String terminalClass;

    public void setTerminalId(Long terminalId) 
    {
        this.terminalId = terminalId;
    }

    public Long getTerminalId() 
    {
        return terminalId;
    }
    public void setAirlinerId(String airlinerId) 
    {
        this.airlinerId = airlinerId;
    }

    public String getAirlinerId() 
    {
        return airlinerId;
    }
    public void setAirportId(String airportId) 
    {
        this.airportId = airportId;
    }

    public String getAirportId() 
    {
        return airportId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setFlightNoStart(Long flightNoStart) 
    {
        this.flightNoStart = flightNoStart;
    }

    public Long getFlightNoStart() 
    {
        return flightNoStart;
    }
    public void setFlightNoEnd(Long flightNoEnd) 
    {
        this.flightNoEnd = flightNoEnd;
    }

    public Long getFlightNoEnd() 
    {
        return flightNoEnd;
    }
    public void setFlightType(String flightType) 
    {
        this.flightType = flightType;
    }

    public String getFlightType() 
    {
        return flightType;
    }
    public void setFlightLetters(String flightLetters) 
    {
        this.flightLetters = flightLetters;
    }

    public String getFlightLetters() 
    {
        return flightLetters;
    }
    public void setStartTerminal(String startTerminal) 
    {
        this.startTerminal = startTerminal;
    }

    public String getStartTerminal() 
    {
        return startTerminal;
    }
    public void setEndTerminal(String endTerminal) 
    {
        this.endTerminal = endTerminal;
    }

    public String getEndTerminal() 
    {
        return endTerminal;
    }
    public void setTerminalClass(String terminalClass) 
    {
        this.terminalClass = terminalClass;
    }

    public String getTerminalClass() 
    {
        return terminalClass;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("terminalId", getTerminalId())
            .append("airlinerId", getAirlinerId())
            .append("airportId", getAirportId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("flightNoStart", getFlightNoStart())
            .append("flightNoEnd", getFlightNoEnd())
            .append("flightType", getFlightType())
            .append("flightLetters", getFlightLetters())
            .append("startTerminal", getStartTerminal())
            .append("endTerminal", getEndTerminal())
            .append("createTime", getCreateTime())
            .append("terminalClass", getTerminalClass())
            .toString();
    }
}
